* net/tramp.el (tramp-ipv6-regexp): The regexp shall cover also
authorMichael Albinus <michael.albinus@gmx.de>
Mon, 19 Jan 2009 06:51:55 +0000 (06:51 +0000)
committerMichael Albinus <michael.albinus@gmx.de>
Mon, 19 Jan 2009 06:51:55 +0000 (06:51 +0000)
IPv4 mapped IPv6 addresses.

lisp/net/tramp.el

index b226f22ad98475ade1871e6fcffb1088e9c40f4c..5814810dd53662a6a1fca21302917d2ebb93e868 100644 (file)
@@ -1213,9 +1213,11 @@ Used in `tramp-make-tramp-file-name'.")
   "*Regexp matching left hand side of IPv6 addresses.
 Derived from `tramp-prefix-ipv6-format'.")
 
-;; The following regexp is a bit sloppy.  But it shall serve our purposes.
+;; The following regexp is a bit sloppy.  But it shall serve our
+;; purposes.  It covers also IPv4 mapped IPv6 addresses, like in
+;; "::ffff:192.168.0.1".
 (defconst tramp-ipv6-regexp
-  "\\(?:\\(?:[a-zA-Z0-9]+\\)?:\\)+[a-zA-Z0-9]+"
+  "\\(?:\\(?:[a-zA-Z0-9]+\\)?:\\)+[a-zA-Z0-9.]+"
   "*Regexp matching IPv6 addresses.")
 
 (defconst tramp-postfix-ipv6-format